package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository  extends MongoRepository<Department,String> {

    Department getDepartmentByDepcodeAndHoscode(String depcode, String hoscode);

    Department getByHoscodeAndDepcode(String depcode,String hoscode);
}
